<html>
	<head>
		<title>window对象</title>
		<meta http-equiv="Content-Type content=html/text" charset="utf-8">
		<script>
			// var windowHeight = window.innerHeight;
			// var windowWidth = window.innerWidth;
			
			// document.write("屏幕的宽度：" + windowWidth + "，屏幕高度：" + windowHeight);
			// document.write("<br />" + document.documentElement.clientHeight);
			// document.write(" " + document.documentElement.clientHeight);
			// confirm();
			// close("是否关闭本网页");

			//弹出确认提示框
			function deleteArticle () {
				if (window.confirm("是否删除文章？")) {

				} else {

				}
			}

			function init () {

				//获取屏幕大小
				var screenW = screen.availWidth;
				var screenH = screen.availHeight;
				//窗口大小
				var windowW = 400;
				var windowH = 300;
				//窗口位置
				var X = (screenW - windowW) / 2;
				var Y = (screenH - windowH) / 2;
				//变脸变量初始化
				var urls = "http://www.baidu.com";
				var name = "百度";

				var optional = "width="+windowW+" height=" +windowH +" left ="+ X +", top =" + Y + "menubar=no, toolbar=no";
				var winObj = window.open(urls, name, optional);
				//向新窗口中写入一条内容
				winObj.document.write("这是一条新的消息");
				//延时关闭
				// winObj.setTimeout("close()", 2000);
			}

		</script>
	</head>
	<body onload="init()">
		<!-- <table width="700" rules ="all" align="center" border="1">
			<tr align="center">
				<td>编号</td>
				<td>标题</td>
				<td>操作</td>
			</tr>
			<tr align="center">
				<td>01</td>
				<td>习近平向晋升上将军衔的张升民颁发命令状</td>
				<td>
	<a href="#" onClick="">修改</a> <a href="#" onClick="deleteArticle ()">删除</a>				</td>
			</tr>
			<tr align="center">
				<td>02</td>
				<td>网民说：中国共产党为什么能领导中国走向伟大复兴</td>
				<td>
	<a href="#" onClick="">修改</a> <a href="#" onClick="deleteArticle ()">删除</a></td>
			</tr>
			<tr align="center">
				<td>03</td>
				<td>应习近平邀请 美总统特朗普将对中国进行国事访问</td>
				<td>
	<a href="#" onClick="">修改</a> <a href="#" onclick="deleteArticle ()">删除</a>
				</td>
			</tr>
		</table> -->
	</body>

</html>